package cn.stylefeng.guns.modular.wms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 仓库中的货位库存
 * @author allen
 * @date 2021/4/11 17:31
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wms_goods_allocation_stock")
public class WmsGoodsAllocationStockEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 货位ID
     */
    @TableField(value = "goods_allocation_id")
    private Long goodsAllocationId;

    /**
     * 商品sku ID
     */
    @TableField(value = "goods_sku_id")
    private Long goodsSkuId;

    /**
     * 可用库存数量
     */
    @TableField(value = "available_stock_quantity")
    private Long availableStockQuantity;

    /**
     * 锁定库存数量
     */
    @TableField(value = "locked_stock_quantity")
    private Long lockedStockQuantity;

    /**
     * 已出库库存数量
     */
    @TableField(value = "output_stock_quantity")
    private Long outputStockQuantity;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_ALLOCATION_ID = "goods_allocation_id";

    public static final String COL_GOODS_SKU_ID = "goods_sku_id";

    public static final String COL_AVAILABLE_STOCK_QUANTITY = "available_stock_quantity";

    public static final String COL_LOCKED_STOCK_QUANTITY = "locked_stock_quantity";

    public static final String COL_OUTPUT_STOCK_QUANTITY = "output_stock_quantity";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}